<%@page import="entities.MetaSeo"%>
<%@page import="java.util.TreeMap"%>
<%@page import="helpers.UrlHelper"%>

<%
TreeMap<String, String> check = (TreeMap<String, String>) request.getAttribute("check");
MetaSeo metaseo = (MetaSeo) request.getAttribute("metaseo");
String name = (String) request.getAttribute("name");
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/admin/layouts/header.jsp" />
		
<script type="text/javascript" src="/admin/js/custom/meta_seo_form.js"></script>
<script type="text/javascript">
<!--
var name = "<%=name%>";
//-->
</script>
		
					<!-- Content Area -->
                	<div id="da-content-area">
                		<jsp:include page="/admin/elements/message_box.jsp" />
                        
                		<div class="grid_3">
                        	<div class="da-panel">
                            	<div class="da-panel-header">
                                	<span class="da-panel-title">
                                        <img src="/admin/images/icons/black/16/pencil.png" alt="" />
                                        Page <%=name %>
                                    </span>
                                </div>
                                
                                <form class="da-form" method="post">
	                                <div id="da-ex-tabs">
	                                    <ul>
	                                        <li><a href="#tab-page">Sumary Page</a></li>
	                                        <li class="hide"><a href="#tab-info">Info Page</a></li>
	                                    </ul>
	                                    <div id="tab-page">
	                                        <div class="da-form-inline">
	                                    		<div class="da-form-row">
	                                                <label>Title <span class="required">*</span></label>
	                                                <div class="da-form-item small">
	                                                    <input type="text" name="title" value="<%=metaseo.getTitle() %>" class="<%=check.get("title") != null ? "error" : "" %>"/>
	                                                    <% if (check.get("title") != null) { %>
	                                                    <span class="errorMessage"><%=check.get("title") %></span>
	                                                    <% } %>
	                                                </div>
	                                            </div>
	                                            
	                                            <div class="da-form-row">
	                                                <label>Keywords <span class="required">*</span></label>
	                                                <div class="da-form-item small">
	                                                    <input type="text" name="keywords" value="<%=metaseo.getKeywords() %>" class="<%=check.get("keywords") != null ? "error" : "" %>" />
	                                                    <% if (check.get("keywords") != null) { %>
	                                                    <span class="errorMessage"><%=check.get("keywords") %></span>
	                                                    <% } %>
	                                                </div>
	                                            </div>
	                                            
	                                            <div class="da-form-row">
	                                                <label>Description <span class="required">*</span></label>
	                                                <div class="da-form-item default">
	                                                    <textarea cols="auto" rows="auto" name="description" class="<%=check.get("description") != null ? "error" : "" %>" ><%=metaseo.getDescription() %></textarea>
	                                                    <% if (check.get("description") != null) { %>
	                                                    <span class="errorMessage"><%=check.get("description") %></span>
	                                                    <% } %>
	                                                </div>
	                                            </div>
	                                            
	                                            <div class="da-form-row">
	                                                <label>OgUrl</label>
	                                                <div class="da-form-item small">
														<input type="text" name="ogurl" value="<%=metaseo.getOgurl() %>" class="<%=check.get("ogurl") != null ? "error" : "" %>"/>
														<% if (check.get("ogurl") != null) { %>
	                                                    <span class="errorMessage"><%=check.get("ogurl") %></span>
	                                                    <% } %>
	                                                </div>
	                                            </div>
	                                            
	                                            <div class="da-form-row">
	                                                <label>OgImage</label>
	                                                <div class="da-form-item small">
	                                                    <input type="text" name="ogimage" value="<%=metaseo.getOgimage() %>" class="<%=check.get("ogimage") != null ? "error" : "" %>"/>
	                                                    <% if (check.get("ogimage") != null) { %>
	                                                    <span class="errorMessage"><%=check.get("ogimage") %></span>
	                                                    <% } %>
	                                                </div>
	                                            </div>
	                                        </div>
	                                    </div>
	                                    <div id="tab-info" class="hide">
	                                        <div class="da-form-row">
                                                <label>Info Meta Title</label>
                                                <div class="da-form-item small">
                                                    <input type="text" name="titleInfo" value="<%=metaseo.getTitleInfo() %>" class="<%=check.get("titleInfo") != null ? "error" : "" %>"/>
                                                    <% if (check.get("titleInfo") != null) { %>
                                                    <span class="errorMessage"><%=check.get("titleInfo") %></span>
                                                    <% } %>
                                                </div>
                                            </div>
                                            
                                            <div class="da-form-row">
                                                <label>Info Meta Keywords</label>
                                                <div class="da-form-item small">
                                                    <input type="text" name="keywordsInfo" value="<%=metaseo.getKeywordsInfo() %>" class="<%=check.get("keywordsInfo") != null ? "error" : "" %>" />
                                                    <% if (check.get("keywordsInfo") != null) { %>
                                                    <span class="errorMessage"><%=check.get("keywordsInfo") %></span>
                                                    <% } %>
                                                </div>
                                            </div>
                                            
                                            <div class="da-form-row">
                                                <label>Info Meta Description</label>
                                                <div class="da-form-item default">
                                                    <textarea cols="auto" rows="auto" name="descriptionInfo" class="<%=check.get("descriptionInfo") != null ? "error" : "" %>" ><%=metaseo.getDescriptionInfo() %></textarea>
                                                    <% if (check.get("descriptionInfo") != null) { %>
                                                    <span class="errorMessage"><%=check.get("descriptionInfo") %></span>
                                                    <% } %>
                                                </div>
                                            </div>
                                            
                                            <div class="da-form-row">
                                                <label>Info OgUrl</label>
                                                <div class="da-form-item small">
													<input type="text" name="ogurlInfo" value="<%=metaseo.getOgurlInfo() %>" class="<%=check.get("ogurlInfo") != null ? "error" : "" %>"/>
													<% if (check.get("ogurlInfo") != null) { %>
                                                    <span class="errorMessage"><%=check.get("ogurlInfo") %></span>
                                                    <% } %>
                                                </div>
                                            </div>
	                                    </div>
	                                </div>
	                                <div class="da-panel-content">
	                                	<div class="da-button-row">
		                                   	<input type="submit" value="Submit" class="da-button blue left" />
		                                	<input type="reset" value="Reset" class="da-button gray" />
		                                </div>
	                                </div>
                                </form>
                                
                                
                            </div>
                        </div>
                        
                        <div class="grid_1">
                        	<jsp:include page="/admin/elements/content_replate_text.jsp" />
                        </div>
                        
                	</div>

<jsp:include page="/admin/layouts/footer.jsp" />